package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * fans信息管理表对象 fans
 * 
 * @author zyy
 * @date 2025-10-30
 */
public class Fans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id号 */
    private Long id;

    /** 昵称 */
    @Excel(name = "昵称")
    @NotBlank(message = "昵称不能为空")
    @Size(min = 0, max = 30, message = "昵称不能超过30个字符")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public String getFansName()
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getFansName())
            .append("sex", getSex())
            .toString();
    }
}
